# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl Schedule-Chronic-Distributed.t'

#########################

use Cwd;

use Test::More tests => 17;

use_ok(Schedule::Chronic::Distributed::Command);
use_ok(Schedule::Chronic::Distributed::DBI);
use_ok(Schedule::Chronic::Distributed::Node);
use_ok(Schedule::Chronic::Distributed::Requirement);
use_ok(Schedule::Chronic::Distributed::Task);
use_ok(Schedule::Chronic::Distributed::PrerequisiteTask);
use_ok(Schedule::Chronic::Distributed::TaskHistory);
use_ok(Schedule::Chronic::Distributed::TaskRequirement);
use_ok(Schedule::Chronic::Distributed::TaskTimes);
use_ok(Schedule::Chronic::Distributed::Category);
use_ok(Schedule::Chronic::Distributed::Constraint);
use_ok(Schedule::Chronic::Distributed::Constraint::DiskIO);
use_ok(Schedule::Chronic::Distributed::Constraint::Loadavg);
use_ok(Schedule::Chronic::Distributed::Constraint::Memory);
use_ok(Schedule::Chronic::Distributed::Constraint::MemorySwap);


use_ok('Schedule::Chronic::Distributed');
my $filename = cwd().'/chronicd';
my $retval = system("perl", "-cw", $filename);
ok($retval == 0, 'chronicd compiles');
